package com.wxtf.platform.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.wxtf.platform.tools.ConstantInfoHelper;

/**
 * @author 黄威
 * **/
public class SystemInitServlet extends HttpServlet{
	private static final long serialVersionUID = 5108189761484012807L;

	public void init(ServletConfig cfg) throws ServletException {
		super.init(cfg);

		ServletContext context = cfg.getServletContext();
		ConstantInfoHelper.APPLICATION_PATH = context.getRealPath("/").replaceAll("\\\\", "/");
		ConstantInfoHelper.getBaseDao("thtf.springhibernate.xml", "hiberNateBaseDao");
		
		
		
	}
}
